application of function pointer in c